﻿/* **
 * WebQ - a Web Questionare / Survey Framework
 * Andrew Adhi Ariane Murniadi / 2009
 * GPL
 * $Id$
 *									** */

using System;
using System.Collections.Generic;
using System.Text;

namespace WebQ.Core {
	/// <summary>
	/// Basic Question-Answer entity where user can specify the question and get the
	/// answer result from
	/// </summary>
	public class WebQQAItem {
		private String m_id = null;
		private String m_questionString = "";
		private List<String> m_answers = new List<String> ();

		/// <summary>
		/// Unique Id for identifying the entity
		/// </summary>
		public String Id {
			get { return m_id; }
			set { m_id = value; }
		}

		/// <summary>
		/// Question String to be displayed to the user
		/// </summary>
		public String QuestionString {
			get { return m_questionString; }
			set { m_questionString = value; }
		}

		/// <summary>
		/// List of answers returned
		/// </summary>
		public List<String> Answers {
			get { return m_answers; }
		}

		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="id">Unique Id for the entity</param>
		public WebQQAItem ( String id )
			: this ( id, "" ) {
		}

		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="id">Unique Id for the entity</param>
		/// <param name="questionString">Question to display to user</param>
		public WebQQAItem ( String id, String questionString ) {
			m_id = id;
			m_questionString = questionString;
		}
	}
}
